home *** CD-ROM | disk | FTP | other *** search
/ Linux Cubed Series 3: Developer Tools / Linux Cubed Series 3 - Developer Tools.iso / utils / shell / xd-2.08 / xd-2 / xd / usr / local / include / Args.h next >
Encoding:
C/C++ Source or Header  |  1994-08-14  |  600 b   |  32 lines

  1. /*
  2.                                 A R G L I S T . H
  3. */
  4.  
  5. #ifndef __Args_H_
  6. #define __Args_H_
  7.  
  8. #include <ICString.h> 
  9.  
  10. class Args: public ICString
  11. {
  12.     public:
  13.     Args                    // constructor
  14.         (unsigned argc, char const *const *argv);
  15.     ~Args();                // destructor (2)
  16.     Args(const Args &other);        // copy constructor (3)
  17.                         // assign (overloaded)
  18.     const Args &operator = (const Args &other);
  19.  
  20.     char const *get_progname(void) const;
  21.     
  22.     private:
  23.     void copy(char const *str);        // internal copy function
  24.     void destroy(void);            // insternal destructor
  25.  
  26.     char
  27.         *prog;                // name of the program
  28. };
  29.  
  30. #endif
  31.  
  32.